package com.content_module.activity.workManager;

import android.view.View;

import com.content_module.R;
import com.content_module.activity.workManager.cancel.CancelWorkerActivity;
import com.content_module.activity.workManager.combine.CombineWorkerActivity;
import com.content_module.activity.workManager.constraints.ConstraintsWorkerActivity;
import com.content_module.activity.workManager.inputoutput.InputOutputWorkerActivity;
import com.content_module.activity.workManager.periodic.PeriodicWorkerActivity;
import com.content_module.activity.workManager.taskchainstream.TaskCharinStreamActivity;
import com.content_module.activity.workManager.then.OrderWorkerActivity;
import com.content_module.activity.workManager.unique.UniqueWorkerActivity;

import component.fy.com.common_module.base.BaseActivity;

public class MainAct extends BaseActivity {
    private static final String TAG = "workManager_MainAct";

    @Override
    protected int getLayoutId() {
        return R.layout.content_act_work_main;
    }

    @Override
    protected void initView() {
        findViewById(R.id.button_output).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                InputOutputWorkerActivity.startUp(MainAct.this);
            }
        });
        findViewById(R.id.button_intervals).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                PeriodicWorkerActivity.startUp(MainAct.this);
            }
        });
        findViewById(R.id.button_constraints).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ConstraintsWorkerActivity.startUp(MainAct.this);
            }
        });
        findViewById(R.id.button_intervals).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                CancelWorkerActivity.startUp(MainAct.this);
            }
        });
        findViewById(R.id.button_order).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                OrderWorkerActivity.startUp(MainAct.this);
            }
        });
        findViewById(R.id.button_combine).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                CombineWorkerActivity.startUp(MainAct.this);
            }
        });
        findViewById(R.id.button_task_charin_stream).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                TaskCharinStreamActivity.startUp(MainAct.this);
            }
        });
        findViewById(R.id.button_task_unique).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                UniqueWorkerActivity.startUp(MainAct.this);
            }
        });
    }

    @Override
    protected void initEvents() {

    }

    @Override
    protected void initData() {

    }
}
